package com.east.controller;

import com.east.result.Result;
import com.east.service.ProductService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/product/")
public class ProductController {
    @Resource
    private ProductService productService;

    @GetMapping("/getNameAndId")
    public Result getNameAndId() {
        return productService.getNameAndId();
    }
}
